package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.model.ActivityPro;
import com.yami.shop.common.util.PageAdapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityMapper extends BaseMapper<ActivityPro> {
    Integer getMaxNumber(@Param("userId")String userId,@Param("prodId")Long prodId);

    ActivityPro getActivityProdByProdId(Long prodId);

    Integer getMaxOrderNumber(@Param("userId")String userId,@Param("prodId")Long prodId);

    List<ActivityPro> getActivityProdByShopId(@Param("adapter") PageAdapter adapter,@Param("shopId") Long shopId);

    Long countActivityProd(@Param("shopId") Long shopId);
}
